package com.xl.basic.entity.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;
import lombok.experimental.Accessors;

/**
 * @author 钟勇
 * Create in 2023/8/17 19:37
 */
@Data
@Accessors(chain = true)
public class TestValidatorParam {

    @NonNull
    @Schema(title = "说明这个字段是干什么的")
    @NotNull(message = "老钟说这个值不能为NULL")
    private Integer testNotNull;

    @NonNull
    @Schema(title = "说明这个字段是干什么的")
    @NotBlank(message = "老钟说这个值不能为空")
    private String testNotBlank;
}
